package com.chh.jproto;

import com.baidu.bjf.remoting.protobuf.FieldType;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import lombok.*;
import lombok.experimental.FieldDefaults;

/**
 * @author 一碗情深
 * @since 2024-08-09 星期五 14:03:44
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ProtobufClass
@FieldDefaults(level = AccessLevel.PUBLIC)
public class PeopleJProto {

    @Protobuf(fieldType = FieldType.STRING, order = 1)
    private String id;
    @Protobuf(fieldType = FieldType.STRING, order = 2)
    private String name;
    @Protobuf(fieldType = FieldType.BOOL, order = 3)
    private Boolean isMarried;
    @Protobuf(fieldType = FieldType.DOUBLE, order = 4)
    private Double income;

}

